<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<h1 id="demo">HTML DOM样式属性</h1>
		<button onclick="myFunc()">点击我</button>
		
		<script>
			function myFunc(){
				document.getElementById("demo").style.color="blue";
			}
		</script>
	</body>
</html>